package com.vken.blog.service.impl;

import com.vken.blog.dao.BlogDao;
import com.vken.blog.model.Blog;
import com.vken.blog.service.BlogManager;

public class BlogManagerImpl implements BlogManager {
	private BlogDao blogDao;

	public void setBlogDao(BlogDao blogDao) {
		this.blogDao = blogDao;
	}

	public Blog get(Integer id) {
		return blogDao.findById(id);
	}

	public void update(Blog blog) {
		blogDao.update(blog);
	}
}
